package hcn.protocol.brandnew.dengji.menzhenyuyue;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 科室信息查询-消息请求 - ODS_02040007
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class ListDepartmentRequest extends BaseRequest {

    /**
     * 请求参数集
     */
    @XmlElement(name = "Query")
    private Query query;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Query {

        /**
         * 医疗机构组织机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 最后修改时间
         */
        @XmlElement(name = "LastModifyTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date lastModifyTime;
        /**
         * 挂号科室代码
         */
        @XmlElement(name = "DeptCode")
        private String deptCode;
        /**
         * 门诊类别
         */
        @XmlElement(name = "OutpatientType")
        private Byte outpatientType;
    }

}
